package com.example.fenye.dao.forum;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.example.fenye.entity.forum.Topic;

public interface TopicDao {
	Long insertTopic(Topic topic);
	
	int selectTopicCount();
	
	List<Topic> selectTopicByPage(@Param(value="startPos") Integer startPos, @Param(value="pageSize") Integer pageSize);
	
	Topic selectTopicById(Long topicid);
}
